package com.bean;

import java.util.Date;

/**
 * 历史记录
 */
public class History {
    private Integer id; //历史记录id
    private  Integer userId; //用户id
    private     Integer viedoId; //视频id
    private Date startTime; //开始时间
    private  Date watchTime;//视频时长

    public History() {
    }


    @Override
    public String toString() {
        return "History{" +
                "id=" + id +
                ", userId=" + userId +
                ", viedoId=" + viedoId +
                ", startTime=" + startTime +
                ", watchTime=" + watchTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getViedoId() {
        return viedoId;
    }

    public void setViedoId(Integer viedoId) {
        this.viedoId = viedoId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getWatchTime() {
        return watchTime;
    }

    public void setWatchTime(Date watchTime) {
        this.watchTime = watchTime;
    }

    public History(Integer id, Integer userId, Integer viedoId, Date startTime, Date watchTime) {
        this.id = id;
        this.userId = userId;
        this.viedoId = viedoId;
        this.startTime = startTime;
        this.watchTime = watchTime;
    }
}
